import Element from 'element-ui'
import '@/styles/variables.scss'
import uploadFromComponent from './index.vue'
import Vue from 'vue'
const goodListFrom = {}
goodListFrom.install = function(Vue, options) {
    const ToastConstructor = Vue.extend(uploadFromComponent)
    // 生成一个该子类的实例
    const instance = new ToastConstructor()
    instance.$mount(document.createElement('div'))
    document.body.appendChild(instance.$el)
    Vue.prototype.$modalGoodList = function(callback, handleNum, row) {
      instance.visible = true
      instance.callback = callback
      instance.handleNum = handleNum
      instance.checked = row
    }
  }
  export default goodListFrom